import request from '@/utils/request'

// 销售额趋势的接口
// 周
export const weekSales = (data) => request.get(`/api/order-service/report/amountCollect/1/${data.start}/${data.end}`)

export const weekSpread = (data) => request.get(`/api/order-service/report/regionCollect/${data.start}/${data.end}`)

// 月
export const monthSales = (data) => request.get(`/api/order-service/report/amountCollect/1/${data.start}/${data.end}`)
export const monthSpread = (data) => request.get(`/api/order-service/report/regionCollect/${data.start}/${data.end}`)

// 年
export const yearSales = (data) => request.get(`/api/order-service/report/amountCollect/2/${data.start}/${data.end}`)
export const yearSpread = (data) => request.get(`/api/order-service/report/regionCollect/${data.start}/${data.end}`)
